package com.onec.service.im.cocurrent;

import com.onec.service.im.util.ThreadUtil;
import java.util.concurrent.ThreadPoolExecutor;

public class FutureTaskScheduler {

  static ThreadPoolExecutor mixPool = null;

  static {
    mixPool = ThreadUtil.getMixedTargetThreadPool();
  }

  private FutureTaskScheduler()
  {

  }

  /**
   * 添加任务
   *
   * @param executeTask
   */


  public static void add(Runnable executeTask) {
    mixPool.submit(()->{ executeTask.run(); });
  }
}
